package com.chris.design.pattern.samples.chain;

/**
 * @author Chris
 */
public abstract class AbstractHandler {

    protected AbstractHandler handler;

    public abstract void handleRequest();

    public AbstractHandler getHandler() {
        System.out.println("====getHandler===" + handler);
        return handler;
    }

    public void setHandler(AbstractHandler handler) {
        System.out.println("====setHandler===" + handler);
        this.handler = handler;
    }
}
